export const rules = {
  phone: [
    {
      required: true,
      message: 'Please enter your mobile phone number',
      trigger: 'blur',
    },
    {
      pattern:
        /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
      message: 'Please enter the correct phone number',
      trigger: 'blur',
    },
  ],
  code: [
    {
      required: true,
      message: 'Please enter the verification code',
      trigger: 'blur',
    },
  ],
}
